<div class="alert alert-{{ context }}" role="alert">
  {%- if not is_user_error -%}
    <p><strong>{{ type }}</strong> in {{ file }}#{{ line }}</p>
  {%- endif -%}

  {{ message|raw }}

  {%- if not is_user_error and formatted_backtrace is not empty -%}
    <p class="mt-3"><strong>Backtrace</strong></p>
    {{- formatted_backtrace|raw -}}
  {%- endif -%}
</div>
